#include "components_cpp/node2.hpp"


Node2::Node2(): Node("node2")
{
    timer1_ = this->create_timer(1.0s, std::bind(&Node2::callbacktimer1_, this));
    timer2_ = this->create_timer(1.0s, std::bind(&Node2::callbacktimer2_, this));
}


void Node2::callbacktimer1_()
{
    std::this_thread::sleep_for(2.0s);
    RCLCPP_INFO(this->get_logger(), "cb 1");
}

void Node2::callbacktimer2_()
{
    std::this_thread::sleep_for(2.0s);
    RCLCPP_INFO(this->get_logger(), "cb 2");
}
